@charset "utf-8";

// options -style
.kh-form-options {
  position: relative;
  margin-top: 6px;

  input {
    width: 100%;
    height: 36px;
    padding: 0 30px 0 8px;
    outline: 0;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #dcdddd;
    background-color: #f4f4f4;

    &:hover {
      border: 1px solid #20d2ad;
      background-color: #FFF;
    }

    &:focus+.kh-options-list li {
      display: block;
    }
  }

  .kh-options-list {
    z-index: 999;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;

    &:hover li{
      display: block;
    }

    li {
      background-color: #f4f4f4;
      padding: 8px;
      cursor: pointer;
      display: none;
      transition: all .3s;

      &:hover {
        background-color: #FFF;
      }
    }
  }
}


// uploadImg -style
.kh-upload-img {
  width: 100%;
  margin-top: 6px;
  border-radius: 6px;
  padding: 10px;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid #e3e3e3;
}

.kh-upload-img-view {
  position: relative;

  p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    text-align: center;
    line-height: 30px;
    color: #FFF;
    background-color: rgba(0,0,0,.5s);
  }

  img {
    width: 100%;
    vertical-align: top;
  }
}

.kh-upload-btn {
  text-align: center;
  margin-top: 30px;

  a {
    display: inline-block;
    width: 100%;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 4px;
    color: #FFF;
    background-color: #20d2ad;
  }
}


// member -style
section {
  height: auto;
}

.kh-member {
  min-height: 100%;
  padding-bottom: 50px;
  background-color: #f4f4f4;
}

.kh-member-main {

}

.kh-member-head {
  text-align: center;
  padding-top: 180px;
  padding-bottom: 30px;
  background-image: url("../../src/blog-img/manage-bg.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.kh-member-img {


  a {
    display: inline-block;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border: 1px solid #FFF;
    border-radius: 50%;
    overflow: hidden;
    background-color: #20d2ad;

    img {
      width: 100px;
      vertical-align: top;
   }
  }

  p {
    margin-top: 10px;
    text-align: center;
  }
}

.kh-to-work {
  text-align: center;
  margin-top: 20px;

  .kh-to-work-btn {
    display: inline-block;
    width: 120px;
    height: 30px;
    line-height: 30px;
    font-size: 16px;
    color: #000;
    border-radius: 10px;
    background-color: rgba(255,255,255,.5);
  }
}

// opus -style
.kh-opus {
  min-width: 1200px;
  width: 80%;
  padding: 20px 30px;
  margin: 20px auto 0;
  box-sizing: border-box;
  background-color: #FFF;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.kh-opus-com {
  position: relative;
  width: 23%;
  margin-right: 2.42222%;
  margin-bottom: 30px;
  border: 1px solid #cccccc;

  &:nth-child(4n) {
    margin-right: 0;
  }

  &:hover .kh-opus-mask-btn{
    opacity: 1;
  }
}

.kh-opus-mask-btn {
  z-index: 999;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all .5s;
}

// icon - style
.kh-ico {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-align: center;
  margin-left: 20px;
  background-position: center;
  background-size: 50%;
  background-repeat: no-repeat;
  background-color: #FFFFFF;

  &:first-child {
    margin-left: 0;
  }
}

.kh-ico-delete {
  background-image: url("../../src/blog-img/delete.png");
}

.kh-ico-update {
  background-image: url("../../src/blog-img/edit.png");
}

.kh-opus-views {
  position: relative;
  background-repeat: no-repeat;
  background-position: 100% 0;
  background-size: 90%;
}

// options -class
.kh-opus-web {
  background-image: url('../../src/blog-img/opus-web.png');
}

.kh-opus-js {
  background-image: url('../../src/blog-img/opus-js.png');
}

.kh-opus-java {
  background-image: url('../../src/blog-img/opus-java.png');
}

.kh-opus-ui {
  background-image: url('../../src/blog-img/opus-ui.png');
}

.kh-opus-css {
  background-image: url('../../src/blog-img/opus-css.png');
}

.kh-opus-html {
  background-image: url('../../src/blog-img/opus-html.png');
}

.kh-opus-other {
  background-image: url('../../src/blog-img/opus-other.png');
}



.kh-opus-content {
  padding: 20px;
  font-size: 14px;
  font-weight: 200;

  h2 {
    font-size: 16px;
    width: 70%;
    margin-bottom: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  div {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
  }
}


// sort -style
.kh-classify {
  margin-top: 60px;
  padding-bottom: 30px;
  display: flex;
  justify-content: space-between;
  border-bottom: 8px solid #f4f4f4;
}

.kh-classify-cs {
  min-width: 1200px;
  width: 80%;
  margin: 50px auto 20px;
  padding: 30px;
  background: #fff;
  box-sizing: border-box;
}

.kh-classify-main {
  position: relative;

  .kh-classify-line {
    opacity: 1;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    border-radius: 2px;
    background-color: #999;
    transition: all 0.3s;
  }
}

.kh-classify-main {
  display: inline-block;

  a {
    color: #999;
    font-size: 16px;
    margin-right: 20px;
  }
}

// search-layout
.kh-search {
  display: inline-block;
  width: 30%;
  height: 36px;
  position: relative;

  a {
    position: absolute;
    top: 6px;
    right: 18px;
    width: 20px;
    height: 24px;
    background-image: url("../../src/blog-img/search.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
  }

  .kh-search-main {
    width: 100%;
    height: 100%;
    outline: 0;
    font-size: 16px;
    padding: 0 60px 0 18px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #f4f4f4;
  }
}

// footer -style
.kh-footer {
  min-width: 1200px;
  background-color: #1f2021;
  color: #707171;
  font-size: 14px;
  text-align: center;
  padding: 50px 0 10px;

  .kh-footer-menu {
    margin-bottom: 20px;

    ul {
      display: flex;
      justify-content: center;

      li {
        padding: 0 20px;
        position: relative;

        &:after {
          content: '';
          position: absolute;
          top: 4px;
          right: 0;
          height: 14px;
          width: 1px;
          background-color: #707171;
        }

        &:last-child {
          &:after {
            content: normal;
          }
        }

        a {
          color: #707171;
          transition: all .3s;

          &:hover {
            color: #FFF;
          }
        }
      }
    }
  }
}


// details -style
.kh-container {
  height: 100%;
}

.kh-details {

}

.kh-details-wrap {
  position: relative;
  width: 1200px;
  margin: 0 auto 50px;
  box-sizing: border-box;
  background-color: #FFF;
}

.kh-details-main {
  display: flex;
  justify-content: center;

  >div {
    box-shadow: 0 0 6px #ccc;
  }
}

.kh-details-adver {
  width: 300px;
  height: 200px;
  margin-left: 20px;
}

.kh-details-body {
  padding: 20px 30px;
  box-sizing: border-box;

  aside {
    margin-bottom: 20px;
  }
}

.kh-details-pages {
  margin: 50px auto;
  text-align: center;
  display: flex;
  justify-content: space-between;

  a {
    display: inline-block;
    width: 100px;
    padding: 4px 0;
    text-align: center;
    border-radius: 4px;
    background-color: #20d2ad;
    color: #FFF;
  }
}

.kh-details-tag {
  position: relative;
  padding-left: 30px;
  font-size: 14px;


  &:before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    background-image: url("../../src/blog-img/tags.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center
  }
}

.kh-details-title {
  margin: 20px 0 8px;
  font-weight: 400;
}

.kh-details-author {
  font-weight: 200;
  font-size: 14px;

  p {
    padding-top: 6px;
  }
}


// manage-add -style
.kh-half-layout {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.kh-half-com {
  flex: 1;
  padding: 10px 20px;
  box-sizing: border-box;

  &:last-child {
    border-left: 1px solid #e3e3e3;
  }
}

.kh-half-form {
  margin-bottom: 30px;

  >label {
    font-size: 18px;
  }

  .kh-half-form-ctrl {
    margin-top: 8px;
    display: flex;
    justify-content: flex-start;
    align-content: flex-start;

    >div {
      flex: 1;
      position: relative;

      i {
        position: absolute;
        top: 10px;
        right: 10px;
        height: 16px;
        width: 16px;
        font-size: 14px;
      }

      input {
        width: 100%;
        height: 36px;
        padding: 0 30px 0 8px;
        outline: 0;
        border-radius: 4px;
        overflow: hidden;
        border: 1px solid #dcdddd;
        background-color: #f4f4f4;

        &:hover {
          border: 1px solid #20d2ad;
          background-color: #FFF;
        }
      }
    }

    a {
      display: inline-block;
      height: 36px;
      line-height: 36px;
      width: 120px;
      text-align: center;
      background-color: #20d2ad;
      color: #FFF;
      border-radius: 4px;
      margin-left: 10px;
    }

    .kh-register {
      margin-bottom: 20px;
    }
  }
}

.kh-column {
  flex-flow: column;
}

.kh-register-btn {
  width: 120px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: #20d2ad;
  color: #FFF;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}


// table -style
.kh-tab-line {
  position: relative;
  font-size: 30px;
  padding-bottom: 10px;
  margin: 50px 0;
  text-align: center;
  color: #000;

  &:after {
    position: absolute;
    content: '';
    bottom: 0;
    left: calc(50% - 25px);
    width: 50px;
    height: 2px;
    background-color:  #000;
  }
}



.kh-tab-views {

}

table {
  width: 100%;
  font-size: 14px;
  color: #333;
  border-collapse: collapse;

  th, td {
    padding: 20px 10px;
    border: 1px solid #e5e5e5;

    &:first-child {
      border-left: 0;
    }

    &:last-child {
      border-right: 0;
    }
  }

  th {
    font-size: 16px;
    background-color: #f9f9f9;
  }

  tr {
    font-weight: 200;

    &:nth-child(2n) {
      background-color: #FFFCF9;
    }
  }

  td {
    text-align: left;

    &:nth-child(3n) {
      text-align: center;
    }
  }
}
















